import faulthandler

import wx

from views import MainFrame

faulthandler.enable()
try:
    app = wx.App(useBestVisual=True)
    app.locale = wx.Locale(wx.LANGUAGE_CHINESE_SIMPLIFIED)
    main_frame = MainFrame()
    app.SetTopWindow(main_frame)
    main_frame.Show()
    app.MainLoop()
except wx._core.wxAssertionError as e:
    print(e)
